package com.eldenring.controller;

import com.eldenring.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserCtrl {

    @GetMapping("/loadByIdUser/{id}")
    public User loadById(@PathVariable Long id){
        return User.builder().id(id).name("刻晴").intro("我叫刻晴").build();
    }
}
